package com.xpoint.backend.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.xpoint.backend.common.R;
import com.xpoint.backend.entity.AddressBook;

import java.util.List;

public interface UserAddressService extends IService<AddressBook> {
    R<String> insertAddressBook(AddressBook addressBook);
    R<List<AddressBook>> findAddressBookList();

    R<String> upDefault(Long id);

    R<AddressBook> upAddressBookById(Long id);

    R<String> deleteAddressBookById(Long id);

    R<String> updateAddressBook(AddressBook addressBook);

    R<AddressBook> getDefaultAddress();
}
